﻿using ASPNETVN.PORTAL.Components.UI;
using System;
using System.Collections;

namespace WEATHER.Modules.MANAGEMENT.Controls
{
    public partial class ItemSpider : AddEditModulePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
        }
        
        private void Auto()
        {
            Hashtable settings = this.Settings;
            iframeArea.Attributes.Add("src", ResolveUrl("~/Modules/WEATHER.Modules.MANAGEMENT/Pages/AreaSpider.aspx?mid=" + settings["WEATHER.Area.ModuleID"]));            
            iframeMeteor.Attributes.Add("src", ResolveUrl("~/Modules/WEATHER.Modules.MANAGEMENT/Pages/MeteorSpider.aspx?mid=" + settings["WEATHER.Meteor.ModuleID"]));
            iframeDangerousWeather.Attributes.Add("src", ResolveUrl("~/Modules/WEATHER.Modules.MANAGEMENT/Pages/DangerousWeatherSpider.aspx?mid=" + settings["WEATHER.DangerousWeather.ModuleID"]));
            iframeProvince.Attributes.Add("src", ResolveUrl("~/Modules/WEATHER.Modules.MANAGEMENT/Pages/ProvinceSpider.aspx?mid=" + settings["WEATHER.Province.ModuleID"]));
        }

        protected void ButtonGetData_Click(object sender, EventArgs e)
        {
            this.Auto();
        }
    }
}